.class Lcom/netease/newsreader/view/MyPopupWindow$ContentFrame;
.super Landroid/widget/FrameLayout;
.source "MyPopupWindow.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/netease/newsreader/view/MyPopupWindow;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x2
    name = "ContentFrame"
.end annotation


# instance fields
.field final synthetic this$0:Lcom/netease/newsreader/view/MyPopupWindow;


# direct methods
.method public constructor <init>(Lcom/netease/newsreader/view/MyPopupWindow;Landroid/content/Context;)V
    .locals 0
    .parameter
    .parameter "context"

    .prologue
    .line 97
    iput-object p1, p0, Lcom/netease/newsreader/view/MyPopupWindow$ContentFrame;->this$0:Lcom/netease/newsreader/view/MyPopupWindow;

    .line 96
    invoke-direct {p0, p2}, Landroid/widget/FrameLayout;-><init>(Landroid/content/Context;)V

    return-void
.end method


# virtual methods
.method public dispatchKeyEvent(Landroid/view/KeyEvent;)Z
    .locals 1
    .parameter "event"

    .prologue
    .line 101
    iget-object v0, p0, Lcom/netease/newsreader/view/MyPopupWindow$ContentFrame;->this$0:Lcom/netease/newsreader/view/MyPopupWindow;

    invoke-virtual {v0, p1}, Lcom/netease/newsreader/view/MyPopupWindow;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 102
    const/4 v0, 0x1

    .line 104
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchKeyEvent(Landroid/view/KeyEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public dispatchTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 1
    .parameter "ev"

    .prologue
    .line 109
    iget-object v0, p0, Lcom/netease/newsreader/view/MyPopupWindow$ContentFrame;->this$0:Lcom/netease/newsreader/view/MyPopupWindow;

    invoke-static {v0}, Lcom/netease/newsreader/view/MyPopupWindow;->access$0(Lcom/netease/newsreader/view/MyPopupWindow;)Landroid/view/View$OnTouchListener;

    move-result-object v0

    if-eqz v0, :cond_0

    iget-object v0, p0, Lcom/netease/newsreader/view/MyPopupWindow$ContentFrame;->this$0:Lcom/netease/newsreader/view/MyPopupWindow;

    invoke-static {v0}, Lcom/netease/newsreader/view/MyPopupWindow;->access$0(Lcom/netease/newsreader/view/MyPopupWindow;)Landroid/view/View$OnTouchListener;

    move-result-object v0

    invoke-interface {v0, p0, p1}, Landroid/view/View$OnTouchListener;->onTouch(Landroid/view/View;Landroid/view/MotionEvent;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 110
    const/4 v0, 0x1

    .line 112
    :goto_0
    return v0

    :cond_0
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->dispatchTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v0

    goto :goto_0
.end method

.method public onTouchEvent(Landroid/view/MotionEvent;)Z
    .locals 5
    .parameter "event"

    .prologue
    const/4 v2, 0x1

    .line 117
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getX()F

    move-result v3

    float-to-int v0, v3

    .line 118
    .local v0, x:I
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getY()F

    move-result v3

    float-to-int v1, v3

    .line 120
    .local v1, y:I
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v3

    if-nez v3, :cond_1

    .line 121
    if-ltz v0, :cond_0

    invoke-virtual {p0}, Lcom/netease/newsreader/view/MyPopupWindow$ContentFrame;->getWidth()I

    move-result v3

    if-ge v0, v3, :cond_0

    if-ltz v1, :cond_0

    invoke-virtual {p0}, Lcom/netease/newsreader/view/MyPopupWindow$ContentFrame;->getHeight()I

    move-result v3

    if-lt v1, v3, :cond_1

    .line 122
    :cond_0
    iget-object v3, p0, Lcom/netease/newsreader/view/MyPopupWindow$ContentFrame;->this$0:Lcom/netease/newsreader/view/MyPopupWindow;

    invoke-virtual {v3}, Lcom/netease/newsreader/view/MyPopupWindow;->dismiss()V

    .line 128
    :goto_0
    return v2

    .line 124
    :cond_1
    invoke-virtual {p1}, Landroid/view/MotionEvent;->getAction()I

    move-result v3

    const/4 v4, 0x4

    if-ne v3, v4, :cond_2

    .line 125
    iget-object v3, p0, Lcom/netease/newsreader/view/MyPopupWindow$ContentFrame;->this$0:Lcom/netease/newsreader/view/MyPopupWindow;

    invoke-virtual {v3}, Lcom/netease/newsreader/view/MyPopupWindow;->dismiss()V

    goto :goto_0

    .line 128
    :cond_2
    invoke-super {p0, p1}, Landroid/widget/FrameLayout;->onTouchEvent(Landroid/view/MotionEvent;)Z

    move-result v2

    goto :goto_0
.end method
